(current_minor_maps): Fixed resizing of cmm_maps;
authorKim F. Storm <storm@cua.dk>
Fri, 10 May 2002 23:57:14 +0000 (23:57 +0000)
committerKim F. Storm <storm@cua.dk>
Fri, 10 May 2002 23:57:14 +0000 (23:57 +0000)
commitf47feb485dcaa1f52f757a2f2c202b40472a2338
treea43ce1134066d418971acaa706c898a9ef9fce98
parentaef9636e56048805c32b9da1ddf0838b9763d86c
(current_minor_maps): Fixed resizing of cmm_maps;
only update cmm_size if realloc actually succeeds.
Testing with initial size of 2 elements revealed that using
realloc on GNU/Linux would cause a random trap in xmalloc
later on, so I rewrote the code to use malloc/bcopy/free instead
of realloc.
src/keymap.c